﻿package mvc_view
{
	import flash.events.Event;
	import mvc_model.Model;
	
	public class View
	{
		private var _model:Model;
		
		public function View() {}
		
		public function update(event:Event = null):void	{}
		
		public function set model(model:Model):void
		{
			_model = model;
			_model.addEventListener(Model.MODEL_CHANGE, update);
		}
		
		public function get model():*
		{
			return _model;
		}
	}
}